home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / python2.4 / encodings / string_escape.py < prev    next >
Text File  |  2005-10-18  |  422b  |  24 lines

  1. # -*- coding: iso-8859-1 -*-
  2. """ Python 'escape' Codec
  3.  
  4.  
  5. Written by Martin v. L÷wis (martin@v.loewis.de).
  6.  
  7. """
  8. import codecs
  9.  
  10. class Codec(codecs.Codec):
  11.  
  12.     encode = codecs.escape_encode
  13.     decode = codecs.escape_decode
  14.  
  15. class StreamWriter(Codec,codecs.StreamWriter):
  16.     pass
  17.  
  18. class StreamReader(Codec,codecs.StreamReader):
  19.     pass
  20.  
  21. def getregentry():
  22.  
  23.     return (Codec.encode,Codec.decode,StreamReader,StreamWriter)
  24.